package com.dd.stack.postgresql.pojo.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/2/11 20:32
 * @Description 部门表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("部门测试表")
@TableName("department")
public class DepartmentDO {
    @ApiModelProperty("id")
    @TableId(type = IdType.AUTO)
    @TableField("dept_id")
    private Integer deptId;
    @ApiModelProperty("部门名")
    @TableField("dept_name")
    private String deptName;
    @ApiModelProperty("部门描述")
    @TableField("dept_description")
    private String deptDescription;
    @ApiModelProperty("创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}